package com.b511.swpu.cementbackend.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Entity
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Table(name = "CM_WK_ACCESSORY_CONSUME", schema = "WANGBING", catalog = "")
// 对应数据表 CM_WK_ACCESSORY_CONSUME 用于生成报表数据中的 作业附件消耗记录
public class CM_WK_AccessoryConsume {

    @Id
    @GenericGenerator(name="cmWkAccessoryConsumeGenerator", strategy="uuid")
    @GeneratedValue(generator="cmWkAccessoryConsumeGenerator")
    // ID生成策略是否改为UUID -> String
    @Column(name = "CM_WK_ACCESSORY_CONSUME_ID")
    private String CM_WK_ACCESSORY_CONSUME_ID;

    @Basic
    @Column(name = "BA_WELL_ID")
    private String baWellId;

    @Basic
    @Column(name = "WELLNAME")
    private String wellName;

    @Basic
    @Column(name = "CASINGSIZE")
    private String casingSize;

    @Basic
    @Column(name = "ACCESSORY_NAME")
    private String accessoryName;

    @Basic
    @Column(name = "AMOUNT")
    private Double amount;

    @Basic
    @Column(name = "UNIT")
    private String unit;

    @Basic
    @Column(name = "UNIT_PRICE")
    private Double unitPrice;

    @Basic
    @Column(name = "MONEY")
    private Double money;

}
